package org.googlecode.lightning.search.parse;

import java.util.Map;

import org.daragon.fulltext.parse.parser.Parser;

/**
 * 
 * @author daragon
 * 
 */
public class ParserFactory {

    private Map<String, Parser> parsers;

    public Map<String, Parser> getParsers() {
        return parsers;
    }

    public void setParsers(Map<String, Parser> parsers) {
        this.parsers = parsers;
    }

    /**
     * Get one Parser by mimeType
     * 
     * @param mimeType
     * @return
     */
    public Parser getParser(String mimeType) {
        return parsers.get(mimeType);
    }
}
